Scenario #5002: Unsubscribe Person and Contact From Mailinglist

Properties

Required

Given

name value
mailingList operations-announce
subscriberEMailAddress michael.miller@example.org

Subscription: michael.miller@example.org

HTTP GET "/api/hs/office/relations?relationType=SUBSCRIBER&mark=operations-announce&contactData=michael.miller%40example.org" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
[ {
  "uuid" : "6564094f-4700-48a4-a68a-afe70d1f3729", // Subscription: Michael Miller to operations-announce
  "anchor" : {
    "uuid" : "1223603d-1a3b-4e0c-a244-027585d22eb2", // Person: Test AG
    "personType" : "LEGAL_PERSON",
    "tradeName" : "Test AG",
    "salutation" : null,
    "title" : null,
    "givenName" : null,
    "familyName" : null
  },
  "holder" : {
    "uuid" : "ca28a2f0-a2c0-4db8-bf2e-7f07bf7d235e", // Person: Michael Miller
    "personType" : "NATURAL_PERSON",
    "tradeName" : null,
    "salutation" : null,
    "title" : null,
    "givenName" : "Michael",
    "familyName" : "Miller"
  },
  "type" : "SUBSCRIBER",
  "mark" : "operations-announce",
  "contact" : {
    "uuid" : "6f4f7197-a1b6-4d06-8d89-f823d308cb24", // Contact: michael.miller@example.org
    "caption" : "Michael Miller",
    "postalAddress" : { },
    "emailAddresses" : {
      "main" : "michael.miller@example.org"
    },
    "phoneNumbers" : { }
  }
} ]

In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.

Delete the Subscriber-Relation by its UUID

HTTP DELETE "/api/hs/office/relations/6564094f-4700-48a4-a68a-afe70d1f3729" // Subscription: michael.miller@example.org \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }` \
  -H 'Content-Type: application/json'
=> status: 204 NO_CONTENT 

generated on 2026-07-17 01:44:27 for branch